#ifndef OBJECTMANAGER_H
#define OBJECTMANAGER_H

#include <string>
#include <list>
#include <GL/glut.h>
#include "objobject.h"
#include "objanim.h"

class ObjectManager {
	public:
		int m_id;
		float m_x, m_y;
		std::list <OBJObject*> m_objobjectList;
		std::string m_objobjectFilename;

		ObjectManager();
		~ObjectManager();
		
		OBJObject* getOBJObject(std::string filename);
		int isUnique(std::string uniqueName);
		OBJObject* createOBJObject(std::string filename, std::string uniqName);
		void drawObject(std::string uniqueName);
		OBJObject* findObject(std::string uniqueName);
		OBJAnim* findAnimObject(std::string uniqueName);
		
		std::list <OBJAnim*> m_objAnimList;
		OBJAnim* createOBJAnim(std::string filename, std::string uniqName);
		int isUniqueAnim(std::string uniqueName);
};

#endif
